//平台属性管理接口
import requests from '@/utils/request-proxy'

//获取一级分类数据
export const reqGetClassfiy1 = () => requests({ url: `/admin/product/getCategory1`, method: 'get' })

//获取二级分类数据
export const reqGetClassfiy2 = (category1Id) => requests({ url: `/admin/product/getCategory2/${category1Id}`, method: 'get' })

//获取三级分类数据
export const reqGetClassfiy3 = (category2Id) => requests({ url: `/admin/product/getCategory3/${category2Id}`, method: 'get' })

//获取商品属性
export const reqGetAttrInfo = (category1Id, category2Id, category3Id) => requests({ url: `/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`, method: 'get' })

//添加属性与属性值
export const reqAddorUpdateAttrInfo = (data) => requests({ url: `/admin/product/saveAttrInfo`, method: 'post', data })